UtcNow Function

public function UtcNow() result(time)

Gets a DateTime object that is set to the current date and time on this computer, expressed as the Coordinated Universal Time (UTC).

Arguments

None

Return Value type(DateTime)


Source Code

FUNCTION  UtcNow &
!
() &
!
RESULT (time)

IMPLICIT NONE

! Local variables:
TYPE (DateTime) :: time

!------------end of declaration------------------------------------------------

time = ToUTC ( Now() )
 
END FUNCTION UtcNow